package com.learn.DesignPattern.Singleton;

public enum  Singleton {
    /**
     * 定义一个枚举的元素，代表Singleton的一个实例。
     */
    MSG_CENTER_CHANNEL1("msg_center_channel1"),
    MSG_CENTER_CHANNEL("msg_center_channel");

    private String channel = null;

    private Singleton(String channel) {
        System.out.println("enum->");
        this.channel = channel;
        //功能处理
    }

    public String getChannel() {
        return this.channel;
    }
}
